/**
 * Copyright ©2012-2018 HopeHaiyang Corporation, All Rights Reserved
 * http://www.wuhanhope.com
 */

package hujia.core;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * class info
 *
 * @author hujia
 *         Create at 2018/6/11 10:05
 */
public class StandardNode implements Node, Lifecycle {
    protected static final Logger logger = LoggerFactory.getLogger(StandardNode.class);
    protected Node child = null;
    protected Node next = null;
    protected String nodeName;

    public void setNext(Node next) {
        this.next = next;
    }

    public void setChild(Node child) {
        this.child = child;
    }

    public Node getNext() {
        return next;
    }

    public Node getChild() {
        return child;
    }

    public String getNodeName() {
        return nodeName;
    }

    public void setNodeName(String name) {
        this.nodeName = name;
    }

    public void init() {
        logger.debug(getNodeName() + " init");
    }

    public void start() {

    }

    public void stop() {

    }

    public void destory() {

    }
}
